30 research outputs found
Lexical Analysis with the Use of Aho-Korasick Automata in Prolog Language
This paper discusses implementation in Prolog and the use of Aho-Korasick automata in lexical analysis. The choice of any of the system approaches known so far depends, among other things, on the choice of the lexical analyser\u27s implementation language. Although ali algorithms referred to in the paper are procedura!, the algorithm based on Aho-Korasick automata is suitable for an implementation in Prolog as a non-procedural language, since the predicates realizing finite automata can be implemented relatively easy. Besides, as a single-pass algorithm, it recognizes ali key-words from the input word. The automaton constructed and the program it is implemented in are a part of a deductive mechanism preprocessor for the estimation of multiple valued dependences of relation data base model.Ovaj se rad bavi implementacijom u Prologu i primjenom Aho-Korasickova automata u rjeÅ”avanju problema leksiÄke analize. Izbor bilo kojeg od danas poznatih sistemskih pristupa rjeÅ”avanju problema leksiÄke analize ovisi medu ostalim i o izboru jezika implementacije leksiÄkog analizatora. lako su svi algoritmi koji se u radu spominju proceduralnog tipa, algoritam temeljen na Aho-Korasickovim automatima pogodan je za implementaciju u Prologu kao neproceduralnom jeziku, jer se predikati koji ostvaruju konaÄne automate dadu relativno lako implementirati. S druge strane algoritam je jednoprolazan i u tome jedinom prolazu raspoznaje sve kljuÄne rijeÄi koje se pojavljuju u zadanoj ulaznoj rijeÄi. Konstruirani automat i program u kojem je implementiran dio su pretprocesora za deduktivni mehanizam za raÄun viÅ”eznaÄnih ovisnosti relacijskog modela podataka
A CONCEPTUAL PROLOG ENGINE FOR AUTOMATED DICTIONARY-TO-HYPERTEXT MAPPING
This article examines the possibilities of mapping the structure of classical information sources (dictionaries, ...) in to the hypertext structure. The hypertext structure enables more efficient usage of the mapped resources (enriching it with new multimedia sources, databases and knowledge bases\u27 structuring, ...). The idea is to interpret the classical information source as formal language, and it shall be demonstrated using the example of the classical dictionary, but it is nevertheless equally applicable to all (similar) types of classical information sources. The adequate technical basis for the implementation is to be seen in the logic programming language Prolog. The method, called Conceptual Prolog Engine, has been formed and developed in this environment
Ontology in Information Security
The past several years we have witnessed that information has become the most precious asset, while protection and security of information is becoming an ever greater challenge due to the large amount of knowledge necessary for organizations to successfully withstand external threats and attacks. This knowledge collected from the domain of information security can be formally described by security ontologies. A large number of researchers during the last decade have dealt with this issue, and in this paper we have tried to identify, analyze and systematize the relevant papers published in scientific journals indexed in selected scientific databases, in period from 2004 to 2014. This paper gives a review of literature in the field of information security ontology and identifies a total of 52 papers systematized in three groups: general security ontologies (12 papers), specific security ontologies (32 papers) and theoretical works (8 papers). The papers were of different quality and level of detail and varied from presentations of simple conceptual ideas to sophisticated frameworks based on ontology
Modeling and solving self-referential puzzles
The so-called self-referential puzzles are a very interesting kind of logic puzzles, aiming at developing the skill of logical thinking. A self-referential puzzle consists of a sequence of questions about the puzzle itself. In this paper, we shall show some selfreferential puzzles, demonstrate how to model and solve them as propositional logic problems, and how to mechanically generate new puzzles. For this, we shall make use of the specific advantages of Mozart/Oz system ā the finite domain constraint programming language and environment.
We shall also show some new puzzles, according to our best knowledge not yet published elsewhere. The program in Mozart/Oz using our method generated these puzzles
MECHANICAL SOLUTION OF THE RUNWAY PROBLEM
U Älankuje opisana jedna aritmetiÄko-logiÄka glavolomka, tzv. problem piste. Zatim je dano mehaniÄka rjeÅ”enje glavolomke u jeziku logiÄkog programiranja PDC Prolog. To znaÄi da je problem adekvatno formaliziran sredstvima jezika, a njegovo rjeÅ”enje reprezentirano kao ciljni predikat pripadnog Prolog programa. Sam proces izraÄunavanja rjeÅ”enja prepuÅ”ten je deduktivnom mehanizmu PDC Prologa. U okviru formalne reprezentacije problema razvijen je niz predikata. Logika programa realizirana je sistemskim predikatima cut (rez) i fail (neuspjeh). Rezultati rada programa dani su u priloženoj .LOG datoteci. Iz podataka koje ona sadrži moguÄe je rekonstruirati proces rjeÅ”avanja problema. Tekst datoteke je komentiran da bi se olakÅ”alo njegovo razumijevanje.In this article a nontrivial example of logico-arithmetical puzzle, so called runway problem is set and solved. The obtained solution is a mechanical one, in the sense that the problem is adequately formalized by means of the language (PDC Prolog), while the solution of the problem is acomplished by running Prolog\u27s deductive mechanism. As a tools for controlling the logic of the program we have used the PDC Prolog\u27s primitive predicates, namely the \u27cut\u27 and the \u27fail\u27 predicates
NEKI ASPEKTI MODELIRANJA LJUSKI EKSPERTNIH SISTEMA
Temu ovoga rada Äini razmatranje nekih aspekata modeliranja ljuski ekspertnih sistema. To se prvenstveno odnosi na formalne metode specifikacije pojedinih modula ljuske. Vezano za pretpostavljene problemske sredine, važna je specifikacija grafiÄkog editora formula jezika raÄuna predikata prvog reda. U radu je dana BN - specifikacija gramatike jezika raÄuna predikata prvog reda kao osnova za generiranje sintaktiÄkog analizatora. Generirani sin taktiÄki analizator služi dalje kao predprocesor deduktivnog mehanizma. Nadalje, analiziran je primjer SF- specifikacije fragmenta hipotetiÄkoq editora i demonstrirana moguÄnost implementacije njegovih funkcija u jeziku PDC Prolog
PRAVILO REZOLUCIJE I RELACIJSKE BAZE PODATAKA
Razvoj sistemske programske podrÅ”ke za raÄunala pete generacije ide u smjeru objedinjavanja glavnih dostignuÄa prethodne faze razvoja. To su s jedne strane svakako relacijske baze podataka kao, slobodno se može reÄi , ekspertni sistemi vrhunske složenosti sposobni za obuhvat i veoma složene transakcije ogromnih koliÄina podataka izloženih svima vrstama prostorne i vremenske nestabilnosti. Drugi smjer razvoja kulminirao je implementacijom izražajnih moguÄnosti i deduktivne snage raÄuna predikata prvog reda i nekih srodnih logiÄkih sistema gotovo u punom obimu. Mislimo pritom na jezik PROLOG i njegove, veÄ sad mnogobrojne derivate. Ovakva sinteza naravno ne bi bila moguÄa bez odgovarajuÄe interakcije na teorijskom nivou izmeÄu teorije relacijskih baza podataka s jedne i matematiÄke logike s druge strane. Njena bit je u logiÄkoj interpretaciji temeljnih pojmova relacijskog modela baze podataka ukljuÄujuÄi i aksiomatiku funkcijskih i viÅ”eznaÄnih zavisnosti. U ovom radu dane su formulacije raÄuna funkcijskih i viÅ”eznaÄnih zavisnosti u duhu raÄuna sudova i izloženi su rezultati koji kulminiraju metateoremom o ekvivalentnosti tih raÄuna i nekih fragmenata raÄuna sudova. Time je postala moguÄa primjena pravila rezolucije za raÄun sudova kao pravila izvoda na razne probleme izvedivosti za raÄune funkcijskih i viÅ”eznaÄnih zavisnosti
A CONCEPTUAL PROLOG ENGINE FOR AUTOMATED DICTIONARY-TO-HYPERTEXT MAPPING
This article examines the possibilities of mapping the structure of classical information sources (dictionaries, ...) in to the hypertext structure. The hypertext structure enables more efficient usage of the mapped resources (enriching it with new multimedia sources, databases and knowledge bases\u27 structuring, ...). The idea is to interpret the classical information source as formal language, and it shall be demonstrated using the example of the classical dictionary, but it is nevertheless equally applicable to all (similar) types of classical information sources. The adequate technical basis for the implementation is to be seen in the logic programming language Prolog. The method, called Conceptual Prolog Engine, has been formed and developed in this environment